.class Lcom/waiqin365/h5/photo/acty/b;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/view/View$OnLongClickListener;


# instance fields
.field final synthetic a:Lcom/waiqin365/h5/photo/acty/a;


# direct methods
.method constructor <init>(Lcom/waiqin365/h5/photo/acty/a;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/h5/photo/acty/b;->a:Lcom/waiqin365/h5/photo/acty/a;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onLongClick(Landroid/view/View;)Z
    .locals 6

    const/4 v5, 0x1

    const/4 v3, -0x1

    const/4 v4, 0x0

    invoke-virtual {p1}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v0

    if-eqz v0, :cond_0

    const-string/jumbo v1, "success"

    check-cast v0, Ljava/lang/String;

    invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_1

    :cond_0
    :goto_0
    return v4

    :cond_1
    instance-of v0, p1, Luk/co/senab/photoview/PhotoView;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/h5/photo/acty/b;->a:Lcom/waiqin365/h5/photo/acty/a;

    check-cast p1, Luk/co/senab/photoview/PhotoView;

    invoke-static {v0, p1}, Lcom/waiqin365/h5/photo/acty/a;->a(Lcom/waiqin365/h5/photo/acty/a;Luk/co/senab/photoview/PhotoView;)Luk/co/senab/photoview/PhotoView;

    new-instance v0, Lcom/waiqin365/lightapp/im/widget/c;

    iget-object v1, p0, Lcom/waiqin365/h5/photo/acty/b;->a:Lcom/waiqin365/h5/photo/acty/a;

    iget-object v1, v1, Lcom/waiqin365/h5/photo/acty/a;->b:Lcom/waiqin365/h5/photo/acty/CameraPreviewActivity;

    invoke-direct {v0, v1}, Lcom/waiqin365/lightapp/im/widget/c;-><init>(Landroid/content/Context;)V

    new-instance v1, Landroid/widget/PopupWindow;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/im/widget/c;->a()Landroid/view/View;

    move-result-object v2

    invoke-direct {v1, v2, v3, v3}, Landroid/widget/PopupWindow;-><init>(Landroid/view/View;II)V

    invoke-virtual {v1, v5}, Landroid/widget/PopupWindow;->setFocusable(Z)V

    invoke-virtual {v1, v5}, Landroid/widget/PopupWindow;->setOutsideTouchable(Z)V

    new-instance v2, Landroid/graphics/drawable/BitmapDrawable;

    invoke-direct {v2}, Landroid/graphics/drawable/BitmapDrawable;-><init>()V

    invoke-virtual {v1, v2}, Landroid/widget/PopupWindow;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V

    new-instance v2, Lcom/waiqin365/h5/photo/acty/c;

    invoke-direct {v2, p0, v1}, Lcom/waiqin365/h5/photo/acty/c;-><init>(Lcom/waiqin365/h5/photo/acty/b;Landroid/widget/PopupWindow;)V

    invoke-virtual {v0, v2}, Lcom/waiqin365/lightapp/im/widget/c;->a(Landroid/view/View$OnClickListener;)V

    new-instance v2, Lcom/waiqin365/h5/photo/acty/d;

    invoke-direct {v2, p0, v1}, Lcom/waiqin365/h5/photo/acty/d;-><init>(Lcom/waiqin365/h5/photo/acty/b;Landroid/widget/PopupWindow;)V

    invoke-virtual {v0, v2}, Lcom/waiqin365/lightapp/im/widget/c;->b(Landroid/view/View$OnClickListener;)V

    const-string/jumbo v2, "\u4fdd\u5b58\u56fe\u7247"

    const v3, 0x10003

    invoke-virtual {v0, v2, v3}, Lcom/waiqin365/lightapp/im/widget/c;->a(Ljava/lang/String;I)V

    const-string/jumbo v2, "\u53d6\u6d88"

    const v3, 0x10001

    invoke-virtual {v0, v2, v3}, Lcom/waiqin365/lightapp/im/widget/c;->a(Ljava/lang/String;I)V

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/im/widget/c;->g()V

    iget-object v0, p0, Lcom/waiqin365/h5/photo/acty/b;->a:Lcom/waiqin365/h5/photo/acty/a;

    iget-object v0, v0, Lcom/waiqin365/h5/photo/acty/a;->b:Lcom/waiqin365/h5/photo/acty/CameraPreviewActivity;

    invoke-static {v0}, Lcom/waiqin365/h5/photo/acty/CameraPreviewActivity;->a(Lcom/waiqin365/h5/photo/acty/CameraPreviewActivity;)Lcom/waiqin365/lightapp/view/photopreview/PhotoPreviewViewPager;

    move-result-object v0

    const/16 v2, 0x11

    invoke-virtual {v1, v0, v2, v4, v4}, Landroid/widget/PopupWindow;->showAtLocation(Landroid/view/View;III)V

    goto :goto_0
.end method
